﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TA.DotNetUtils
{
	public static class _IPropertiesContainerExtensions
	{
		//public static object Eval(this IPropertiesContainer This, string propertyPath)
		//{
		//  string propName = propertyPath, remaining = null;

		//  int dotPos = propertyPath.IndexOf(".");
		//  if (dotPos != -1)
		//  {
		//    propName = propertyPath.Substring(0, dotPos);
		//    remaining = propertyPath.Substring(dotPos + 1);
		//  }
			
		//  IList<object> l;
		//  object v = This.GetValue(propName);
		//  if (dotPos == -1 || v == null) return v;
		//  if (v is IPropertiesContainer)
		//    return ((IPropertiesContainer)v).Eval(remaining);
		//}
	}
}
